<body>
<div class="path fn-clear"><span class="fb">首页</span><a href="{url('fragment/index')}">资源碎片</a></div>
<div class="ui-form">
<form id="form" action="{url('fragment/add')}" method="post">
<input type="hidden" name="fid" value="{$fid}"/>  
<table>
    <tr><th>所属站点:</th><td>
      <select class="select" name="language">
        <option value="0" checked="checked">默认站点</option>
      {loop $language $rs}
        <option value="{$rs['id']}" {if $info['language'] == $rs['id']}selected{/if}>{$rs['name']}</option>
      {/loop}
      </select>
    </td>
    <tr><th>碎片名称:</th><td><input class="input w300" datatype="*" type="text"  name="title" nullmsg="碎片名称必须填写" value="{$info['title']}" /></td></tr>
    <tr><th>碎片简述:</th><td><textarea datatype="*" name="about" class="textarea w600 h50" nullmsg="碎片简述必须填写">{$info['about']}</textarea></td></tr>
    <tr>
        <th>标签内容:</th><td>
            <textarea class="ui-editor" id="content" name="content" style="width:100%;height:400px">{htmlspecialchars($info['content'])}</textarea>
        </td>
    </tr>
</table> 
<div class="btn fn-tac">
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','Dialog','Form','Editor',function(){ 
    $('#form').cpFormPage({ajaxpost:1});
}) 
</script>
</body>